package com.six.goods.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.six.core.entity.Shop;
import com.six.core.vo.Result;
import com.six.goods.mapper.ShopMapper;
import com.six.goods.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author wang
* @description 针对表【sto_shop】的数据库操作Service实现
* @createDate 2023-02-27 13:50:47
*/
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService {

    @Autowired
    private ShopMapper shopMapper;

    @Override
    public Result seleSpop() {
        List<Shop> shops = shopMapper.selectList();
        if (shops != null) {
            return new Result(2000, "查询成功", shops);
        }else {
            return new Result(5000, "查询失败");
        }
    }
}




